<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.org/ui">

    <body>

        <ui:composition template="./TemplateApp.xhtml">

            <ui:define name="top">
                top
            </ui:define>

            <ui:define name="left">
                left
            </ui:define>

            <ui:define name="content">
                <h:panelGroup id="messagePanel" layout="block">
                    <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
                </h:panelGroup>
                <h:form>
                    <p:panelGrid columns="2">
                        <h:outputLabel value="Id:" for="codTicket" />
                        <h:outputText id="codTicket" value="#{hdTicketsController.selected.codTicket}" title="#{bundle.EditHdTicketsTitle_codTicket}" required="true" requiredMessage="#{bundle.EditHdTicketsRequiredMessage_codTicket}"/>
                        <h:outputLabel value="Descripcion: " for="descTicket" />
                        <h:outputText id="descTicket" value="#{hdTicketsController.selected.descTicket}" title="#{bundle.EditHdTicketsTitle_descTicket}"  escape="false" />
                        <h:outputLabel value="Fecha registro" for="fecRegistro" />
                        <h:outputText id="fecRegistro" value="#{hdTicketsController.selected.fecRegistro}" title="#{bundle.EditHdTicketsTitle_fecRegistro}" required="true" requiredMessage="#{bundle.EditHdTicketsRequiredMessage_fecRegistro}">
                            <f:convertDateTime pattern="MM/dd/yyyy HH:mm:ss" />
                        </h:outputText>
                        <h:outputLabel value="Solicitante: " for="codUsuario" />
                        <h:outputText id="codUsuario1" value="#{hdTicketsController.selected.codUsuario.toString()}" />
                        <h:outputText value="Canalizador: " />
                        <h:outputText id="codAsesor" value="#{hdTicketsController.selected.codAsesor.toString()}" title="#{bundle.EditHdTicketsTitle_codAsesor}" />


                        <h:outputLabel value="Estado: " for="codEstado" />
                        <h:outputText id="codEstado" value="#{hdTicketsController.selected.codEstado.toString()}" title="#{bundle.EditHdTicketsTitle_codEstado}" />

                        <h:outputLabel value="Tipo: " for="codClasiBaja" />
                        <h:outputText id="codClasiBaja" value="#{hdTicketsController.selected.codClasiBaja.descClasiBaja}" title="#{bundle.EditHdTicketsTitle_codClasiBaja}" />
                        <h:outputText value="Seleccione jefe:" />
                        <p:selectOneMenu id="codTecnico" value="#{hdTicketsController.selected.codJefe}" title="#{bundle.EditHdDetalleTicketTitle_codTecnico}" >
                            <f:selectItems value="#{hdTecnicosController.itemsJefes}"/>
                        </p:selectOneMenu>
                        <f:facet name="footer">
                            <p:commandButton value="Asignar" action="#{hdTicketsController.update1()}" ajax="false" />
                        </f:facet>
                    </p:panelGrid>

                </h:form>


            </ui:define>

            <ui:define name="bottom">
                bottom
            </ui:define>

        </ui:composition>

    </body>
</html>
